const router = require('koa-router')();
const blogModel = require('../model/blog');
router.get('/', async ctx=>{
    var result = await blogModel.find({})
    await ctx.render('index',{blog:result})
})
module.exports = router;